from tkinter import *


def processOK():
    print("正确按钮被点击了哦")

def processCancel():
    print("取消按钮被点击了哦")

window = Tk()

btOk = Button(window,text="正确",fg='red',command=processOK)
btCancel = Button(window,text='取消',fg='yellow',command = processCancel)

btOk.pack()
btCancel.pack()
window.mainloop()